package com.example.flutter_youren

import android.os.Bundle
import io.flutter.Log
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine

class MainActivity : FlutterActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.e("${NativeConstant.TAG}MainActivity", "onCreate")
        val hybridRouteManager = HybridRouteManager(this)
        try {
            flutterEngine!!.plugins.add(hybridRouteManager)
        } catch (e: Exception) {
            Log.e("${NativeConstant.TAG}MainActivity", "HybridRouteManager", e)
        }
    }

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        Log.e("${NativeConstant.TAG}MainActivity", "configureFlutterEngine")
    }
}
